package cn.buk.tms.eotms.dao;

import cn.buk.tms.eotms.entity.HotelOrder;
import cn.buk.tms.eotms.sc.HotelOrderSearchCriteria;

import java.util.List;

public interface HotelOrderDao {

  List<HotelOrder> searchHotelOrders(int ownerId, int customerId, HotelOrderSearchCriteria sc);

  HotelOrder getHotelOrderById(int orderId);

  int createHotelOrder(HotelOrder hotelOrder);

  int cancelHotelOrder(int ownerId, int customerId, String username, int orderId, String remark);

  int submitHotelOrder(int ownerId, int customerId, String username, int orderId);

  int approveHotelOrder(int ownerId, int customerId, String username, int orderId, int denyCode, String denyReason);

  /**
   * 修改酒店订单的付款状态为“已付款”
   * @param userId
   * @param orderId
   * @return
   */
  int updateHotelOrderPaid(int userId, int orderId);
}
